package com.powernode.mapper;

import com.powernode.annotation.DataScope;
import com.powernode.domain.User;
import com.powernode.model.BaseQuery;
import com.powernode.vo.UserDetailInfoVo;

import java.util.List;

/**
* @author Administrator
* @description 针对表【t_user(用户表)】的数据库操作Mapper
* @createDate 2025-02-18 10:09:27
* @Entity com.powernode.domain.User
*/
public interface UserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectUserByLoginAct(String loginAct);


    UserDetailInfoVo selectUserDetailInfoById(Integer userId);

    @DataScope(tableAlias = "tu",tableField = "id")
    List<User> selectList(BaseQuery baseQuery);


    int batchDeleteUsersByIds(List<Integer> userIds);

    List<User> selectAllList();
}
